import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";

export function posPage(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/pos/page`,
    method: "get",
    params
  });
}

export function posDetail(params?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/pos/detail`,
    method: "get",
    params
  });
}

export function posDelete(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/pos/delete`,
    method: "post",
    data
  });
}

export function posAdd(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/pos/add`,
    method: "post",
    data
  });
}

export function posEdit(data?: object) {
  return http({
    url: `/${EnumAlias.PROJECT}/${EnumAlias.MODULE_SYS}/pos/edit`,
    method: "post",
    data
  });
}
